// import ajax from '@/utils/request.js'
import { ajax } from '@/plugins/request.js'

export const loginApi = (data) => {
  return ajax.post(`/api/users/login`, {
    ...data
  })
}

export const registerApi = (data) => {
  return ajax.post('/api/users', {
    ...data
  })
}
